clear all

** Set working directory: please set your own
/*
cd "~/Dropbox/sanctions_replication/"
*/
** Open dataset
use data/survey_long_format, clear
	  
* Run the analyses
local outcomes physical verbal insult avoid deny gossip

* With individual fixed effects
 foreach outcome in `outcomes' {
	regr `outcome' vox_dummy i.id, cluster(id)
	est store `outcome'

}

	
* Check mean dependent variables
local outcomes physical verbal insult avoid deny gossip

 foreach outcome in `outcomes' {
	sum `outcome' if vox_dummy == 0
 }
 
* Make table
esttab physical verbal insult avoid deny gossip ///
using tables/table1.tex, ///
mtitles("Physical confront" "Verbal confront" "Insult"  "Avoid interaction" "Deny help" "Gossip"  ) ///
keep(vox_dummy _cons) ///
coeflabels(vox_dummy "Vox (dummy)" _cons "Constant") se ///
replace
